package com.qst.system.service.impl;

import com.qst.system.domain.vo.FaceCheckVo;
import com.qst.system.mapper.FaceCheckMapper;
import com.qst.system.service.IFaceCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class FaceCheckServiceImpl implements IFaceCheckService {

    @Autowired
    private FaceCheckMapper faceCheckMapper;

    @Override
    public List<FaceCheckVo> selectFaceCheckList(FaceCheckVo faceCheck) {
        List<FaceCheckVo> faceCheckVos = faceCheckMapper.selectFaceCheckList(faceCheck);
        return faceCheckVos;
    }

    @Override
    public FaceCheckVo selectFaceCheckById(Long id) {
        return faceCheckMapper.selectFaceCheckById(id);
    }

    @Override
    public int insertFaceCheck(FaceCheckVo faceCheck) {
        return faceCheckMapper.insertFaceCheck(faceCheck);
    }

    @Override
    public int updateFaceCheck(FaceCheckVo faceCheck) {
        return faceCheckMapper.updateFaceCheck(faceCheck);
    }

    @Override
    public int deleteFaceCheckById(Long id) {
        return faceCheckMapper.deleteFaceCheckById(id);
    }

    @Override
    public int deleteFaceCheckByIds(Long[] ids) {
        return faceCheckMapper.deleteFaceCheckByIds(ids);
    }
}
